theme_action_links_{$stylesheet}
Filter HookDescription
Filters the action links of a specific theme in the Multisite themes list table. The dynamic portion of the hook name, `$stylesheet`, refers to the directory name of the theme, which in most cases is synonymous with the template name.Hook Information
File Location |
wp-admin/includes/class-wp-ms-themes-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 688 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$actions
|
An array of action links. |
WP_Theme
|
$theme
|
The current WP_Theme object. |
string
|
$context
|
Status of the theme, one of 'all', 'enabled', or 'disabled'. |
Usage Examples
Basic Usage
<?php
// Hook into theme_action_links_{$stylesheet}
add_filter('theme_action_links_{$stylesheet}', 'my_custom_filter', 10, 3);
function my_custom_filter($actions, $theme, $context) {
// Your custom filtering logic here
return $actions;
}
Source Code Context
wp-admin/includes/class-wp-ms-themes-list-table.php:688
- How this hook is used in WordPress core
<?php
683 *
684 * @param string[] $actions An array of action links.
685 * @param WP_Theme $theme The current WP_Theme object.
686 * @param string $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
687 */
688 $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context );
689
690 echo $this->row_actions( $actions, true );
691 }
692
693 /**
PHP Documentation
<?php
/**
* Filters the action links of a specific theme in the Multisite themes
* list table.
*
* The dynamic portion of the hook name, `$stylesheet`, refers to the
* directory name of the theme, which in most cases is synonymous
* with the template name.
*
* @since 3.1.0
*
* @param string[] $actions An array of action links.
* @param WP_Theme $theme The current WP_Theme object.
* @param string $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-admin/includes/class-wp-ms-themes-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.